package vno.sci.window
{
	import flash.display.BitmapData;
	import flash.display.DisplayObject;
	
	import vno.fux.res.pool.BitmapAttacher;
	import vno.sci.event.MonologEvent;
	
	public class Monolog
	{
		private var _id:uint;
		public var m:MonologModel;
		public var v:MonologView;
		public var c:MonologController;
		public function Monolog(id:uint, owner:*, data:Object, frameBackground:BitmapAttacher, textBackground:BitmapAttacher)
		{
			this._id = id;
		
			m = new MonologModel(data);
			c = new MonologController(m,id);
//			var bitmap1:BitmapData= new BitmapData(300,300,false,0x00ffee);
//			var bitmap2:BitmapData = new BitmapData(300,300,false,0xeeffee);
			v = new MonologView(m,c,owner,frameBackground,textBackground);
			m.forceUpdate();
		}
		public function get view():DisplayObject
		{
			return v.getDisplayObject();
		}
	}
}